package cn.hanyx.coder.design.pattern.structural.adapter.object;

/**
 * Adeptor
 *
 * @author hanyx
 * @date 2020/05/26
 */
public class Adeptor implements ITaget {
    private Adeptee adeptee;

    public Adeptor(Adeptee adeptee) {
        this.adeptee = adeptee;
    }

    @Override
    public void funcA() {
        this.adeptee.func01();
    }

    @Override
    public void funcB() {
        this.adeptee.func02();
    }

    @Override
    public void funcC() {
        this.adeptee.func03();
    }
}
